package com.xucy.springboot.reflect;

/**
 * @Author xucy
 * @Date 2019-11-11 19:14
 * @Description
 **/

public class Test1 {

    public static void main(String[] args) {
        try {
            Person person = (Person) Class.forName("com.xucy.springboot.reflect.Person").newInstance();
            System.out.println(person);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        }
    }
}
